//
//  StockDataServerTool.m
//  K线图自治
//
//  Created by LK-IOS on 2017/12/11.
//  Copyright © 2017年 LK-IOS. All rights reserved.
//

#import "StockDataServerTool.h"

@implementation StockDataServerTool

+ (void)Get:(NSString*) url params:(id)params success:(void (^)(id obj))success fail:(void(^)(id obj))fail
{
    if ([url isEqualToString:@"minute"]) {
        NSString * path =[[NSBundle mainBundle]pathForResource:@"data.plist" ofType:nil];
        NSArray * sourceArray = [[NSDictionary dictionaryWithContentsOfFile:path] objectForKey:@"data3"];
        success(sourceArray);
    }else if ([url isEqualToString:@"Ktime"]){
        NSString * path =[[NSBundle mainBundle]pathForResource:@"data.plist" ofType:nil];
        NSArray * sourceArray = [[NSDictionary dictionaryWithContentsOfFile:path] objectForKey:@"data"];
        success(sourceArray);
    }
    
    
}

@end
